package ru.spbau.goncharova.chat.protocol;

public enum MessageType {
    LOGIN_REQUEST, LOGIN_REPLY, SEND_REQUEST, SEND_REPLY, FETCH_REQUEST, FETCH_REPLY, LOGOUT_REQUEST, LOGOUT_REPLY;

    public int getCode() {
        return ordinal() + 1;
    }
}
